package com.zl.roomdesign.main

import android.os.Bundle
import com.bm.library.PhotoView
import com.bumptech.glide.Glide
import com.zl.core.base.BaseActivity

/**
 *
 *<p></p>
 *
 * Created by zhangli on 2018/5/7 11:42.<br/>
 */
class PreviewActivity : BaseActivity() {


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val photoView = PhotoView(this)
        photoView.enable()
        setContentView(photoView)

        Glide.with(this)
                .load(intent.getStringExtra("imgUrl"))
                .into(photoView)
    }
}